package com.zhang.genericdemo.request.impl;

import com.zhang.genericdemo.request.BaseRequest;
import com.zhang.genericdemo.response.impl.ResponseB;

/**
 * @Author: ZhangGongMing
 * @CreateTime: 2025/4/25 09:16
 * @Description:
 * @Version: 1.0
 */
public class RequestB extends BaseRequest<ResponseB> {

    // RequestB 中可以有自己的属性
    private String phone;

    private String address;

    public RequestB() {
    }

    @Override
    public Class<ResponseB> getResponseType() {
        return ResponseB.class;
    }

    public RequestB(String phone, String address, String method) {
        super(method);
        this.phone = phone;
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
